import market from '../../api/market'

/**
 * 查询营销诊断的数据概况
 * @param data {}
 */
export const querySitation = ({ commit, state, rootState }, data) => {
  return market.querySitation(data)
    .then(response => {
      return response
    })
    .catch(err => {
      console.error(err)
    })
}
/**
 * 查询营销诊断的数据解读
 * @param data {}
 */
export const queryInterpretationReport = ({ commit, state, rootState }, data) => {
  return market.queryInterpretationReport(data)
    .then(response => {
      return response
    })
    .catch(err => {
      console.error(err)
    })
}
